package org.jeecg.modules.studyProject.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 研修项目
 * @Author: jeecg-boot
 * @Date:   2024-07-10
 * @Version: V1.0
 */
@Data
@TableName("gw_study_project")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="gw_study_project对象", description="研修项目")
public class GwStudyProject implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
	/**项目文件png*/
	@Excel(name = "项目文件png", width = 15)
    @ApiModelProperty(value = "项目文件png")
    private java.lang.String projectUrl;
	/**项目标签*/
	@Excel(name = "项目标签", width = 15)
    @ApiModelProperty(value = "项目标签")
    private java.lang.String projectTag;
	/**项目描述*/
	@Excel(name = "项目描述", width = 15)
    @ApiModelProperty(value = "项目描述")
    private java.lang.String projectDescription;
	/**附件下载*/
	@Excel(name = "附件下载", width = 15)
    @ApiModelProperty(value = "附件下载")
    private java.lang.String projectDownload;
	/**项目链接*/
	@Excel(name = "项目链接", width = 15)
    @ApiModelProperty(value = "项目链接")
    private java.lang.String projectLink;
	/**项目封面*/
	@Excel(name = "项目封面", width = 15)
    @ApiModelProperty(value = "项目封面")
    private java.lang.String projectCover;
    /**邮箱地址*/
    @Excel(name = "邮箱地址", width = 15)
    @ApiModelProperty(value = "邮箱地址")
    private java.lang.String projectEmail;
    /**活动时间范围*/
    @Excel(name = "活动时间范围", width = 15)
    @ApiModelProperty(value = "活动时间范围")
    private java.lang.String projectDateRange;
    /**活动状态*/
    @Excel(name = "活动状态", width = 15)
    @ApiModelProperty(value = "活动状态")
    private java.lang.Integer projectStatus;
    /**活动状态名称*/
    @Excel(name = "活动状态名称", width = 15)
    @ApiModelProperty(value = "活动状态名称")
    @TableField(exist = false)
    private java.lang.String projectStatusName;

    public String getProjectStatusName() {
        if(projectStatus == null) {
            return "--";
        } else if(projectStatus == 0) {
            return "未开始";
        } else if(projectStatus == 1) {
            return "进行中";
        } else if(projectStatus == 2) {
            return "已结束";
        } else {
            return "--";
        }
    }
}
